package net.anzhuo.common.enums;

public enum ResultEnum {

	/** 通用模块 */
    SUCCESS(0, "成功"),
    SYSTEM_ERROR(500, "系统错误"),
    ILLEGAL_OPERATION(900, "非法操作"),
    
    /** 用户模块 */
    USER_EXISTS(1000, "该用户已存在"),
    USER_NOT_EXISTS(1001, "该用户不存在"),
    PASSWORD_ERROR(1002, "密码错误"),
    NOT_LOGIN(1003, "未登录"),
    TOKEN_EXPIRED(1004, "token已过期"),
    
    ;

    private Integer code;

    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
    
    
}
